﻿using LightCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QdArch
{
    [CommandClass]
    public class ArchCmds
    {
        [CommandMethod(Name = "WALL", ShortCuts = "W")]
        public CommandResult DrawWall(DocumentRuntime docRt, string[] args)
        {
            var wallAction = new WallAction(docRt);
            wallAction.ExecCreate(args);
            return CommandResult.Succ();
        }
        [CommandMethod(Name = "DOOR", ShortCuts = "D")]
        public CommandResult DrawDoor(DocumentRuntime docRt, string[] args)
        {
            var doorAction = new DoorAction(docRt);
            doorAction.ExecCreate(args);
            return CommandResult.Succ();
        }

        [CommandMethod(Name = "WINDOW", ShortCuts = "WIN")]
        public CommandResult DrawWindow(DocumentRuntime docRt, string[] args)
        {
            var windowAction = new WindowAction(docRt);
            windowAction.ExecCreate(args);
            return CommandResult.Succ();
        }
        [CommandMethod(Name = "STAIR", ShortCuts = "S")]
        public CommandResult DrawStair(DocumentRuntime docRt, string[] args)
        {
            var stairAction = new StairAction(docRt);
            stairAction.ExecCreate(args);
            return CommandResult.Succ();
        }

        [CommandMethod(Name = "SLAB", ShortCuts = "S")]
        public CommandResult DrawSlab(DocumentRuntime docRt, string[] args)
        {
            var slabAction = new SlabAction(docRt);
            slabAction.ExecCreate(args);
            return CommandResult.Succ();
        }
    }
}
